package cn.wildfire.chat.app.extendsion.utils;

import cn.wildfire.chat.app.main.OnRefreshGroupInfosListener;
import cn.wildfire.chat.app.main.TakeoverGroupListener;

/**
 * Create by HEKE, 2019/8/23 20:58
 * TODO 转让群主接口中转站
 */
public class TakeoverInterfaceHub {

    private static TakeoverGroupListener takeoverGroupListener;

    private static OnRefreshGroupInfosListener onRefreshGroupInfosListener;

    public static void setTakeoverGroupListener(TakeoverGroupListener takeoverGroupListener) {
        TakeoverInterfaceHub.takeoverGroupListener = takeoverGroupListener;
    }

    public static TakeoverGroupListener getTakeoverGroupListener() {
        return takeoverGroupListener;
    }

    public static OnRefreshGroupInfosListener getOnRefreshGroupInfosListener() {
        return onRefreshGroupInfosListener;
    }

    public static void setOnRefreshGroupInfosListener(OnRefreshGroupInfosListener onRefreshGroupInfosListener) {
        TakeoverInterfaceHub.onRefreshGroupInfosListener = onRefreshGroupInfosListener;
    }

    public static void releaseTOG() {
        takeoverGroupListener = null;
    }

    public static void releaseRGI() {
        onRefreshGroupInfosListener = null;
    }

}
